package com.tea.constans;

public class OrderStatusConstants {
    /**
     * 订单状态：未付款
     */
    public static final String PENDING_PAYMENT = "0";
    /**
     * 订单状态：待发货
     */
    public static final String PENDING_SHIPMENT = "1";
    /**
     * 订单状态：已发货
     */
    public static final String SHIPPED = "2";
    /**
     * 订单状态：已完成
     */
    public static final String COMPLETED = "3";
    /**
     * 订单状态：已关闭
     */
    public static final String CLOSED = "4";
    
    /**
     * 获取订单状态描述
     * @param status 状态码
     * @return 状态描述
     */
    public static String getStatusDesc(String status) {
        switch (status) {
            case PENDING_PAYMENT: return "待支付";
            case PENDING_SHIPMENT: return "待发货";
            case SHIPPED: return "已发货";
            case COMPLETED: return "已完成";
            case CLOSED: return "已关闭";
            default: return "未知状态";
        }
    }
}